{
  "properties" : { },
  "id" : "5e206252ba5e410fb8064715bef8b313",
  "script" : null,
  "groupId" : "646d9e48bde240a9a9d5605d35104425",
  "name" : "getStudentByRole",
  "createTime" : null,
  "updateTime" : 1648540164459,
  "lock" : null,
  "createBy" : null,
  "updateBy" : null,
  "path" : "/student",
  "method" : "GET",
  "parameters" : [ {
    "name" : "role",
    "value" : "2",
    "description" : null,
    "required" : true,
    "dataType" : "String",
    "type" : null,
    "defaultValue" : null,
    "validateType" : null,
    "error" : null,
    "expression" : null,
    "children" : null
  } ],
  "options" : [ ],
  "requestBody" : "",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"code\": 1,\n    \"message\": \"success\",\n    \"data\": [{\n        \"id\": \"57f0221b-d6c9-4885-90e9-d3bd8794f1c7\",\n        \"name\": \"nam1\",\n        \"pic\": \"123\",\n        \"birthday\": \"1998-07-12\",\n        \"graduation_time\": \"2021-07-01\",\n        \"school\": \"大学1\",\n        \"major\": \"软件工程\",\n        \"education\": \"本科\",\n        \"role\": \"2\"\n    }, {\n        \"id\": \"5ffc4530-41bc-4248-891e-e837ff3554f6\",\n        \"name\": \"name2\",\n        \"pic\": \"123\",\n        \"birthday\": \"1998-10-31\",\n        \"graduation_time\": \"2021-07-01\",\n        \"school\": \"大学1\",\n        \"major\": \"软件工程\",\n        \"education\": \"本科\",\n        \"role\": \"2\"\n    }, {\n        \"id\": \"d5accade-882f-4031-b5cc-20ec7aa03b8a\",\n        \"name\": \"戚名扬\",\n        \"pic\": \"12313\",\n        \"birthday\": \"1998-09-02\",\n        \"graduation_time\": \"2021-07-01\",\n        \"school\": \"华东交通大学\",\n        \"major\": \"软件工程\",\n        \"education\": \"本科\",\n        \"role\": \"2\"\n    }],\n    \"timestamp\": 1648540133577,\n    \"executeTime\": 78\n}",
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : {
    "name" : "",
    "value" : "",
    "description" : "",
    "required" : false,
    "dataType" : "Object",
    "type" : null,
    "defaultValue" : null,
    "validateType" : "",
    "error" : "",
    "expression" : "",
    "children" : [ {
      "name" : "code",
      "value" : "1",
      "description" : "",
      "required" : false,
      "dataType" : "Integer",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ ]
    }, {
      "name" : "message",
      "value" : "success",
      "description" : "",
      "required" : false,
      "dataType" : "String",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ ]
    }, {
      "name" : "data",
      "value" : "",
      "description" : "",
      "required" : false,
      "dataType" : "Array",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ {
        "name" : "",
        "value" : "",
        "description" : "",
        "required" : false,
        "dataType" : "Object",
        "type" : null,
        "defaultValue" : null,
        "validateType" : "",
        "error" : "",
        "expression" : "",
        "children" : [ {
          "name" : "id",
          "value" : "57f0221b-d6c9-4885-90e9-d3bd8794f1c7",
          "description" : "",
          "required" : false,
          "dataType" : "String",
          "type" : null,
          "defaultValue" : null,
          "validateType" : "",
          "error" : "",
          "expression" : "",
          "children" : [ ]
        }, {
          "name" : "name",
          "value" : "nam1",
          "description" : "",
          "required" : false,
          "dataType" : "String",
          "type" : null,
          "defaultValue" : null,
          "validateType" : "",
          "error" : "",
          "expression" : "",
          "children" : [ ]
        }, {
          "name" : "pic",
          "value" : "123",
          "description" : "",
          "required" : false,
          "dataType" : "String",
          "type" : null,
          "defaultValue" : null,
          "validateType" : "",
          "error" : "",
          "expression" : "",
          "children" : [ ]
        }, {
          "name" : "birthday",
          "value" : "1998-07-12",
          "description" : "",
          "required" : false,
          "dataType" : "String",
          "type" : null,
          "defaultValue" : null,
          "validateType" : "",
          "error" : "",
          "expression" : "",
          "children" : [ ]
        }, {
          "name" : "graduation_time",
          "value" : "2021-07-01",
          "description" : "",
          "required" : false,
          "dataType" : "String",
          "type" : null,
          "defaultValue" : null,
          "validateType" : "",
          "error" : "",
          "expression" : "",
          "children" : [ ]
        }, {
          "name" : "school",
          "value" : "大学1",
          "description" : "",
          "required" : false,
          "dataType" : "String",
          "type" : null,
          "defaultValue" : null,
          "validateType" : "",
          "error" : "",
          "expression" : "",
          "children" : [ ]
        }, {
          "name" : "major",
          "value" : "软件工程",
          "description" : "",
          "required" : false,
          "dataType" : "String",
          "type" : null,
          "defaultValue" : null,
          "validateType" : "",
          "error" : "",
          "expression" : "",
          "children" : [ ]
        }, {
          "name" : "education",
          "value" : "本科",
          "description" : "",
          "required" : false,
          "dataType" : "String",
          "type" : null,
          "defaultValue" : null,
          "validateType" : "",
          "error" : "",
          "expression" : "",
          "children" : [ ]
        }, {
          "name" : "role",
          "value" : "2",
          "description" : "",
          "required" : false,
          "dataType" : "String",
          "type" : null,
          "defaultValue" : null,
          "validateType" : "",
          "error" : "",
          "expression" : "",
          "children" : [ ]
        } ]
      } ]
    }, {
      "name" : "timestamp",
      "value" : "1648540133577",
      "description" : "",
      "required" : false,
      "dataType" : "Long",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ ]
    }, {
      "name" : "executeTime",
      "value" : "78",
      "description" : "",
      "required" : false,
      "dataType" : "Integer",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ ]
    } ]
  }
}
================================
return db.select('select * from student where role =  #{role}')